package com.superteam.mac.base.data;


import java.util.HashMap;
import java.util.Map;

import com.superteam.mac.mode.IndexConfig;

public class DataBean {

	//<machineCode,machineName>
	public static Map<String,String> MACHINES= new HashMap<String,String>();
	
	//machine staut
	public static Integer MACHINESTAUTS = 0; //记录总数
	public static Integer NONET = 0; //未连接
	public static Integer WITING = 0;//待机
	public static Integer WORK = 0;//工作
	//指标
	public static Map<String,IndexConfig> CONFIGS = new HashMap<String,IndexConfig>();
	
	//session中选择车间
	public static final String WORKCODE_IN_SESSION = "workshopcode"; 
	public static final String MACHINECODE_IN_SESSION = "machinename";
	
	
	
	
	
	
	
	
	public static String getMachineName(String machineCode)
	{
		
			return MACHINES.get(machineCode);
		
	}
	public static IndexConfig getIndexName(String indexName)
	{
		if(null == CONFIGS.get(indexName))
		{
			return new IndexConfig();
		}else{
			return CONFIGS.get(indexName);
		}
	}
}
